package com.ruoyi.service.impl;

import com.ruoyi.demo.ClassInfo;
import com.ruoyi.mapper.ClassMapper;
import com.ruoyi.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service
public class ClassServiceImpl implements ClassService {

    @Resource
    private ClassMapper classMapper;

    @Override
    public List<ClassInfo> list() {
        return classMapper.list();
    }

    @Override
    public List<ClassInfo> getListById(ClassInfo info) {
        return classMapper.getListById(info);

    }


}
